Part Number Hot Search : 
00041 MTH600 MV12V ADIS1 11002 BTB06A 10700 TE943SM
Product Description
Full Text Search
 

To Download ST16C452PS Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  exar corporation, 48720 kato road, fremont, ca 94538 (510) 668-7000 fax (510) 668-7017 st16c452 ST16C452PS plcc package rev. 3.10 dual uart with parallel printer port description the st16c452/ST16C452PS (452/452ps) is a dual universal asynchronous receiver and transmitter (uart) with an added bi-directional parallel port that is directly compatible with a centronics type printer. the parallel port is designed such that the user can configure it as general purpose i/o interface, or for connection to other printer devices. the 452/452ps provides enhanced uart functions, a modem control interface, and data rates up to 1.5mbps. onboard status registers provide the user with error indications and operational status. the system interrupts and control may be tailored to meet user requirements. an internal loop-back capability allows onboard diagnostics. a programmable baud rate generator is provided to select transmit and receive clock rates from 50 bps to 1.5 mbps. the 452/452ps is available in a 68 pin plcc package. the 452/452ps is compatible with the 16c450. the 452 is available in two versions, the st16c452 and the ST16C452PS. the st16c452 provides single hardware pin to control the printer port data direction while the 452ps provides an additionally software control bit to control the printer port data direction to become compatible ps/2 operating system. the 452/452ps is fabricated in an advanced cmos process with low power consumption. features pin to pin and functional compatible to tl16c452 software compatible with st16c450, ns16c450 1.5 mbps transmit/receive operation (24mhz) independent transmit and receive control modem and printer status registers uart port and printer port bi-directional printer port direction set by single control bit or 8 bit pattern (aa/55) modem control signals (-cts, -rts, -dsr, -dtr, -ri, -cd) programmable character lengths (5, 6, 7, 8) even, odd, or no parity bit generation and detection internal loop-back diagnostics ttl compatible inputs, outputs low power ordering information part number pin package operating temperature st16c452cj68 68 plcc 0 c to + 70 c st16c452cj68ps 68 plcc 0 c to + 70 c st16c452ij68 68 plcc -40 c to + 85 c st16c452ij68ps 68 plcc -40 c to + 85 c intb intp -slctin init -autofdxt -strobe gnd pd0 pd1 pd2 pd3 pd4 pd5 pd6 pd7 inta rdout n.c. -cdb gnd -rib -dsrb clk -csb gnd biden ack pe -busy slct vcc error rxb n.c. gnd -ctsa -cda -ria -dsra -csa a2 a1 a0 -iow -ior -csp -reset vcc rxa n.c. intsel 9 8 7 6 5 4 3 2 1 68 67 66 65 64 63 62 61 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 st16c452cj68 st16c452cj68ps txb -dtrb -rtsb -ctsb d0 d1 d2 d3 d4 d5 d6 d7 n.c. vcc -rtsa -dtra txa
2 st16c452/452ps rev. 3.10 figure 1, block diagram d0-d7 -ior -iow -reset biden a0-a2 -csa -csb -csp i nt a,b intp -dtr a,b -rts a,b -cts a,b -ri a,b -cd a,b -dsr a,b tx a,b rx a,b data bus & control logic register select logic modem control logic interrupt control logic transmit holding registers transmit shift register receive holding registers receive shift register inter connect bus lines & control signals clock & baud rate generator clk printer data ports pd0-pd7 printer control logic -strobe init -autofdx -selctin pe, select -busy, -ac k error
3 st16c452/452ps rev. 3.10 symbol description symbol pin signal type pin description a0 35 i address-0 select bit - internal registers address selection. a1 34 i address-1 select bit - internal registers address selection. a2 33 i address-2 select bit - internal registers address selection. -ack 68 i acknowledge (with internal pull-up) - general purpose input or line printer acknowledge (active low). a logic 0 from the printer, indicates successful data transfer to the print buffer. -autofdxt 56 i/o general purpose i/o (open drain, with internal pull-up) or automatic line feed (open drain input with internal pull-up). when this signal is low the printer should automatically line feed after each line is printed. biden 1 i bi-direction enable - pd7-pd0 direction select. a logic 0 sets the parallel port for i/o select register control. a logic 1 sets the parallel port for control register bit-5 control. busy 66 i busy (with internal pull-up) - general purpose input or line printer busy (active high). can be used as an output from the printer to indicate printer is not ready to accept data. clk 4 i clock input. - an external clock must be connected to this pin to clock the baud rate generator and internal circuitry (see programmable baud rate generator). -csa 32 i chip select a - a logic 0 at this pin enables the serial channel-a uart registers for cpu data transfers. -csb 3 i chip select b - a logic 0 at this pin enables the serial channel-b uart registers for cpu data transfers. -csp 38 i printer port chip select - (active low). a logic 0 at this pin enables the parallel printer port registers and/or pd7-pd0 for external cpu data transfers. d0-d7 14-21 i/o data bus (bi-directional) - these pins are the eight bit, three state data bus for transferring information to or from the controlling cpu. d0 is the least significant bit and the first data bit in a transmit or receive serial data stream.
4 st16c452/452ps rev. 3.10 symbol description symbol pin signal type pin description -error 63 i error, printer (with internal pull-up) - general purpose input or line printer error. this pin may be connected to the active low (logic 0) output of a printer to indicate an error condition. gnd 2,7,54 pwr signal and power ground. 27 init 57 i/o initialize (open drain, with internal pull-up) - general pur- pose i/o signal. this pin may be connected for initialization service of a connected line printer. generally when this signal is a logic 0, any connected printer will be initialized. int a/b 45,60 o interrupt output a/b ( three state active high) - these pins provide individual channel interrupts, int a-b. int a-b are enabled when mcr bit-3 is set to a logic 1, interrupts are enabled in the interrupt enable register (ier), and when an interrupt condition exists. interrupt conditions include: re- ceiver errors, available receiver buffer data, transmit buffer empty, or when a modem status flag is detected. -intp 59 o printer interrupt, - this pin can be used to signal the interrupt status of a connected printer. this pin basically tracks the -ack input pin, when intsel is a logic 0 and interrupts are enabled by bit-4 in the control register. a latched mode can be selected by setting intsel to a logic 1. in this case the interrupt -intp is generated normally but does not return to the inactive state until the trailing edge of the read cycle (-ior pin). -intp is three stated until con bit-4 is set to a logic 1. intsel 43 i interrupt select mode - this pin selects the interrupt type for the printer port (-intp). when this pin is a logic 0, the external -ack signal state is generally followed, minus some minor propagation delay. making this pin a logic 1 or connecting it to vcc will set the interrupt latched mode. in this case the printer interrupt (-intp) will not return to a logic 1 until the trailing edge of -ior (end of the external cpu read cycle). -ior 37 i read strobe.- a logic 0 transition on this pin will place the contents of an internal register defined by address bits a0- a2 for either uart channels a/b or a0-a1 for the printer
5 st16c452/452ps rev. 3.10 symbol description symbol pin signal type pin description port, onto d0-d7 data bus for a read cycle by an external cpu. -iow 36 i w rite strobe.- a logic 0 transition on this pin will transfer the data on the internal data bus (d0-d7), as defined by either address bits a0-a2 for uart channels a/b or a0-a1 for the printer port, into an internal register during a write cycle from an external cpu. pd7-pd0 46-53 i/o printer data port (bi-directional three state) - these pins are the eight bit, three state data bus for transferring information to or from an external device (usually a printer). d0 is the least significant bit. pd7-pd0 are latched during a write cycle (output mode). pe 67 i paper empty - general purpose input or line printer paper empty (internal pull-up). this pin can be connected to provide a printer out of paper indication. rdout 44 o read out (active high) - this pin goes to a logic 1 when the external cpu is reading data from the 452/452ps. this signal can be used to enable/disable external transceivers or other logic functions. -reset 39 i master reset (active low) - a logic 0 on this pin will reset the internal registers and all the outputs. the uart transmitter output and the receiver input will be disabled during reset time. (see st16c452/452ps external reset conditions for initialization details.) n.c. 9,61 not used. should be left open. slct 65 i select (with internal pull-up) - general purpose input or line printer select status. normally this pin is connected to a printer output (active low) that indicates the ready status of a printer, i.e., on-line and/or on-line and ready. -slctin 58 i/o select in (open drain, with internal pull-up) - general purpose i/o or line printer select. this pin can be read via bit-3 in the printer command register, or written via bit-3 in the printer control register. as this pin is open-drain, it can be wire-or?d with other outputs. normally this signal is
6 st16c452/452ps rev. 3.10 symbol pin signal type pin description connected with a printer to select the printer with an active low. -strobe 55 i/o strobe (open drain, with internal pull-up) - general purpose i/o or data strobe output. normally this output is connected to a printer and indicates that valid data is available at the printer port (pd0-pd7). n.c. 22,42 not used. should be left open. vcc 23,40,64 pwr power supply input. -cd a/b 29,8 i carrier detect (active low) - these inputs are associated with individual uart channels a through b. a logic 0 on this pin indicates that a carrier has been detected by the modem for that channel. -cts a/b 28,13 i clear to send (active low) - these inputs are associated with individual uart channels, a through b. a logic 0 on this pin(s) indicates the modem or data set is ready to accept transmit data from the 452/452ps for the given channel. status can be tested by reading msr bit-4 for that channel(s). -cts has no effect on the transmit or receive operation. -dsr a/b 31,5 i data set ready (active low) - these inputs are associated with individual uart channels, a through b. a logic 0 on this pin(s) indicates the modem or data set is powered-on and is ready for data exchange with the uart. this pin has no effect on the uart?s transmit or receive operation. -dtr a/b 25,11 o data terminal ready (active low) - these outputs are associated with individual uart channels, a through b. a logic 0 on this pin(s) indicates that the 452/452ps is powered-on and ready. this pin can be controlled via the modem control register for channel(s) a-b. writing a logic 1 to mcr bit-0 will set the -dtr output to logic 0, enabling the modem. this pin will be a logic 1 after writing a logic 0 to mcr bit-0, or after a reset. this pin has no effect on the uart?s transmit or receive operation. symbol description
7 st16c452/452ps rev. 3.10 symbol pin signal type pin description -ri a/b 30,6 i ring indicator (active low) - these inputs are associated with individual uart channels, a through b. a logic 0 on this pin(s) indicates the modem has received a ringing signal from the telephone line(s). a logic 1 transition on this input pin will generate an interrupt for the ringing channel(s). this pin does not have any effect on the transmit or receive operation. -rts a/b 24,12 o request to send (active low) - these outputs are associated with individual uart channels, a through b. a logic 0 on the -rts pin(s) indicates the transmitter has data ready and waiting to send for the given channel(s). writing a logic 1 in the modem control register (mcr bit-1) will set this pin to a logic 0 indicating data is available. after a reset this pin will be set to a logic 1. this pin does not have any effect on the transmit or receive operation. rx a/b 41,62 i receive data input, rx a-b. - these inputs are associated with individual serial channel(s) to the 452. the rx signal will be a logic 1 during reset, idle (no data), or when the transmitter is disabled. during the local loop-back mode, the rx input pins are disabled and tx data is internally connected to the uart rx inputs, internally. tx a/b 26,10 o transmit data, tx a-b - these outputs are associated with individual serial transmit channel(s) from the 452/452ps. the tx signal will be a logic 1 during reset, idle (no data), or when the transmitter is disabled. during the local loop- back mode, the tx output pins are disabled and tx data is internally connected to the uart rx inputs. symbol description
8 st16c452/452ps rev. 3.10 general description the 452/452ps provides serial asynchronous receive data synchronization, parallel-to-serial and serial-to- parallel data conversions for both the transmitter and receiver sections. these functions are necessary for converting the serial data stream into parallel data that is required with digital data systems. synchronization for the serial data stream is accomplished by adding start and stops bits to the transmit data to form a data character (character orientated protocol). data integ- rity is insured by attaching a parity bit to the data character. the parity bit is checked by the receiver for any transmission bit errors. the electronic circuitry to provide all these functions is fairly complex especially when manufactured on a single integrated silicon chip. the 452/452ps represents such an integration with greatly enhanced features. the 452/452ps is fabricated with an advanced cmos process. the 452/452ps combines the package functions of a dual uart and a printer interface on a single inte- grated chip. the 452/452ps uart is indented to be software compatible with the st16c450, and ns16c450 while the bi-directional printer interface mode is intended to operate with a centronics type parallel printer. however, the printer interface is designed such that it may be configured to operate with other parallel printer interfaces or used as a general purpose parallel interface. the 452 is avail- able in two versions, the st16c452 and the ST16C452PS. the st16c452 provides single hard- ware pin to control the printer port data direction while the 452ps provides an additionally software control bit to control the printer port data direction to become compatible ps/2 operating system. the 452/452ps is capable of operation to 1.5mbps with a 24 mhz external clock input. with an external clock input of 1.8432 mhz the user can select data rates up to 115.2 kbps. functional descriptions functional modes two functional user modes are selectable for the 452/ 452ps package. the first of these provides the dual uart functions, while the other provides the func- tions of a parallel printer interface. these features are available through selection at the package interface select pins. uart a-b functions the uart mode provides the user with the capability to transfer information between an external cpu and the 452/452ps package. a logic 0 on chip select pins -csa or -csb allows the user to configure, send data, and/or receive data via the uart channels a-b. printer port functions the printer mode provides the user with the capability to transfer information between an external cpu and the 452/452ps parallel printer port. a logic 0 on chip select pin -csp allows the user to configure, send data, and/or receive data via the bi-directional parallel 8-bit data bus, pd0-pd7. internal registers the 452/452ps provides 11 internal registers for monitoring and control of the uart functions and another 6 registers for monitoring and controlling the printer port. these resisters are shown in table 4 below. the uart registers function as data holding registers (thr/rhr), interrupt status and control registers (ier/isr), line status and control registers (lcr/lsr), modem status and control registers (mcr/msr), programmable data rate (clock) control registers (dll/dlm), and a user assessable scratchpad register (spr). the printer port registers functions data holding registers (pr), i/o status regis- ter (sr), i/o select register (iosel), and a command and control register (com/con). register functions are more fully described in the following paragraphs.
9 st16c452/452ps rev. 3.10 table 4, internal register decode a2 a1 a0 read mode write mode general register set (thr/rhr, ier/isr, mcr/msr, lcr/lsr, spr): note 1* 0 0 0 receive holding register transmit holding register 0 0 1 interrupt enable register 0 1 0 interrupt status register 0 1 1 line control register 1 0 0 modem control register 1 0 1 line status register 1 1 0 modem status register 1 1 1 scratchpad register scratchpad register baud rate register set (dll/dlm): note *2 0 0 0 lsb of divisor latch lsb of divisor latch 0 0 1 msb of divisor latch msb of divisor latch printer port set (pr/sr/iosel/com/con): note *3 x 0 0 port register port register x 0 1 status register i/o select register x 1 0 command register control register note 1* the general register set is accessible only when cs a or cs b is a logic 0. note 2* the baud rate register set is accessible only when cs a or cs b is a logic 0 and lcr bit-7 is a logic 1. note 3*: printer port register set is accessible only when -csp is a logic 0 in conjunction with the states of the interface signal biden and printer control register bit-5 or iosel register. programmable baud rate generator the 452/452ps supports high speed modem tech- nologies that have increased input data rates by employing data compression schemes. for example a 33.6kbps modem that employs data compression may require a 115.2kbps input data rate. a 128.0kbps isdn modem that supports data compression may need an input data rate of 460.8kbps. the 452/452ps can support a standard data rate of 921.6kbps. single baud rate generator is provided for the trans- mitter and receiver, allowing independent tx/rx channel control. the programmable baud rate gen- erator is capable of accepting an input clock up to 24 mhz, as required for supporting a 1.5mbps data rate. the 452/452ps requires that an external clock source be connected to the clk input pin to clock the internal baud rate generator for standard or custom rates. (see baud rate generator programming below).
10 st16c452/452ps rev. 3.10 the generator divides the input 16x clock by any divisor from 1 to 2 16 -1. the 452/452ps divides the basic external clock by 16. the basic 16x clock provides table rates to support standard and custom applications using the same system design. the rate table is configured via the dll and dlm internal register functions. customized baud rates can be achieved by selecting the proper divisor values for the msb and lsb sections of baud rate generator. programming the baud rate generator registers dlm (msb) and dll (lsb) provides a user capability for selecting the desired final baud rate. the example in table 5 below, shows the selectable baud rate table available when using a 1.8432 mhz external clock input. table 5, baud rate generator programming table (1.8432 mhz clock): output output user dlm dll baud rate 16 x clock 16 x clock program program divisor divisor value value (decimal) (hex) (hex) (hex) 50 2304 900 09 00 110 1047 417 04 17 150 768 300 03 00 300 384 180 01 80 600 192 c0 00 c0 1200 96 60 00 60 2400 48 30 00 30 4800 24 18 00 18 7200 16 10 00 10 9600 12 0c 00 0c 19.2k 6 06 00 06 38.4k 3 03 00 03 57.6k 2 02 00 02 115.2k 1 01 00 01 loop-back mode the internal loop-back capability allows onboard diag- nostics. in the loop-back mode the normal modem interface pins are disconnected and reconfigured for loop-back internally. mcr register bits 0-3 are used for controlling loop-back diagnostic testing. in the loop-back mode int enable and mcr bit-2 in the mcr register (bits 2,3) control the modem -ri and -cd inputs respectively. mcr signals -dtr and -rts (bits 0-1) are used to control the modem -cts and -dsr inputs respectively. the transmitter output (tx) and the receiver input (rx) are disconnected from their associated interface pins, and instead are connected together internally (see figure 6). the -cts, -dsr, - cd, and -ri are disconnected from their normal modem control inputs pins, and instead are connected internally to -dtr, -rts, int enable and mcr bit-2. loop-back test data is entered into the transmit hold- ing register via the user data bus interface, d0-d7. the transmit uart serializes the data and passes the serial data to the receive uart via the internal loop- back connection. the receive uart converts the serial data back into parallel data that is then made
11 st16c452/452ps rev. 3.10 available at the user data interface, d0-d7. the user optionally compares the received data to the initial transmitted data for verifying error free operation of the uart tx/rx circuits. in this mode, the receiver and transmitter interrupts are fully operational. the modem control interrupts are also operational. however, the interrupts can only be read using lower four bits of the modem control register (mcr bits 0-3) instead of the four modem status register bits 4-7. the interrupts are still con- trolled by the ier. figure 6, internal loop-back mode diagram d0-d7 -ior -iow -reset biden a0-a2 -csa -csb -csp i nt a,b intp tx a,b rx a,b data bus & control logic register select logic interrupt control logic transmit holding registers transmit shift register receive holding registers receive shift register inter connect bus lines & control signals clock & baud rate generator clk printer data ports pd0-pd7 printer control logic -strobe init -autofdx -selctin pe, select -busy, -ac k error modem control logic -cts -rts -dtr -dsr -ri -cd (-op1) (-op2) mcr bit-4=1
12 st16c452/452ps rev. 3.10 or output functions. the signals have internal pull-up resistors and can be wire-or?d. normally, -strobe is used to strobe pd0-pd7 bus data into a printer input buffer. -slctin normally selects the printer while autofdxt signals the printer to auto-linefeed. other signals provide similar printer functions but are not bi- directional. the printer functions for these signals are described in table 1, symbol description. the interface provides a mode steering signal called biden. biden controls the bi-directional 8-bit data bus (pd0-pd7) direction, input or output. when biden is a logic 1 a single control bit (d5) in the control register sets the input or output mode. setting biden to a logic 0 however sets an ibm interface compatible mode. in this mode the bus direction (input/output) is set by eight data bits in the iosel register. an aa (hex) pattern sets the input mode while a 55 (hex) pattern sets the output mode. i/o direction is depicted in table 6 below. printer port the 452/452ps contains a general purpose 8-bit parallel interface port that is designed to directly interface with a centronics printer. a number of the control/interrupt signals and the 8-bit data bus have been designed as bi-directional data buses. this allows the interface to function with other device parallel data bus applications. signal -ack is used to generate an -intp interface interrupt that would nor- mally be connected to the user cpu. -intp can be made to follow the -ack signal, normal mode (see figure 7) or it can be configured for the latch mode. in the latch mode the interrupt is not cleared until printer status register (sr) is read. another signal (init) can be made to function as an outgoing or incoming interrupt, or combined with other interrupts to provide a common wire-or interrupt output. interface signals - strobe, -autofdxt, and -slctin are bi-direc- tional and can be used as combinations of input and/ table 6, pd0-pd7 i/o direction mode selection port direction biden control register (d5) i/o select register input mode 0 x (note 4) aa hex output mode 0 x (note 4) 55 hex output mode 1 0 x (note 4) input mode 1 1 x (note 4) note: 4 = don?t care
13 st16c452/452ps rev. 3.10 register functional descriptions the following table delineates the assigned bit functions for the eighteen 452/452ps internal registers. the assigned bit functions are more fully defined in the following paragraphs. table 7, st16c452/452ps internal registers a2 a1 a0 register bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 [default] note 5* general register set: note 1* 0 0 0 rhr [xx] b it-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 0 0 0 thr [xx] b it-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 0 0 1 ier [00] 0000m odem r eceive transmit receive status line holding holding interrupt status register register interrupt interrupt 0 1 0 isr [01] 0000intintintint priority priority priority status bit-2 bit-1 bit-0 0 1 1 lcr [00] d ivisor set set even parity stop word word latch break parity parity enable bits l ength length enable b it-1 bit-0 1 0 0 mcr [00] 0 0 0 loop int a/b [x] -rts -dtr back enable 1 0 1 lsr [60] 0 thr & thr. break framing parity overrun receive tsr empty interrupt error error error data empty ready 1 1 0 msr [x0] cd ri dsr cts delta delta delta delta -cd -ri -dsr -cts 1 1 1 spr [ff] b it-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 special register set: note *2 0 0 0 dll [xx] bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 0 0 1 dlm [xx] b it-15 bit-14 bit-13 bit-12 bit-11 bit-10 bit-9 bit-8
14 st16c452/452ps rev. 3.10 a2 a1 a0 register bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 [default] note 5* printer port register set: note 3* [x] 0 0 pr[00] bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 [x] 0 0 pr[00] bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 [x] 0 1 sr[4f] -busy -ack pe slct error -irq logic logic state ?1? ?1? [x] 0 1 iosel bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 [x] 1 0 com[e0] logic logic logic -intp -slctin init -auto - strobe ?1? ?1? ?1? enable fdxt [x] 1 0 con[00] [x] [x] pd 0-7 -intp -slctin init -auto - strobe in/out enable fdxt note 1* the general register set is accessible only when cs a or cs b is a logic 0. note 2* the baud rate register set is accessible only when cs a or cs b is a logic 0 and lcr bit-7 is a logic 1. note 3*: printer port register set is accessible only when -csp is a logic 0 in conjunction with the states of the interface signal biden and printer control register bit-5 or iosel register. note 5* the value between the square brackets represents the register?s initialized hex value, x = n/a. uart register descriptions transmit (thr) and receive (rhr) holding reg- isters the serial transmitter section consists of an 8-bit transmit hold register (thr) and transmit shift register (tsr). the status of the thr is provided in the line status register (lsr). writing to the thr transfers the contents of the data bus (d7-d0) to the thr, providing that the thr or tsr is empty. the thr empty flag in the lsr register will be set to a logic 1 when the transmitter is empty or when data is transferred to the tsr. note that a write operation can be performed when the transmit holding register empty flag is set (logic 0 = buffer full). the serial receive section also contains an 8-bit receive holding register, rhr. receive data is removed from the 452/452ps by reading the rhr register. the receive section provides a mechanism to prevent false starts. on the falling edge of a start or false start bit, an internal receiver counter starts counting clocks at the 16x clock rate. after 7 1/2 clocks the start bit time should be shifted to the center of the start bit. at this time the start bit is sampled and if it is still a logic 0 it is validated. evaluating the start bit in this manner prevents the receiver from assembling a false character. receiver status codes will be posted in the lsr.
15 st16c452/452ps rev. 3.10 ier bit-3: logic 0 = disable the modem status register interrupt. (normal default condition) logic 1 = enable the modem status register interrupt. ier bit 4-7: not used - initialized to a logic 0. interrupt status register (isr) the 452/452ps provides four levels of prioritized interrupts to minimize external software interaction. the interrupt status register (isr) provides the user with four interrupt status bits. performing a read cycle on the isr will provide the user with the highest pending interrupt level to be serviced. no other inter- rupts are acknowledged until the pending interrupt is serviced. whenever the interrupt status register is read, the interrupt status is cleared. however it should be noted that only the current pending interrupt is cleared by the read. a lower level interrupt may be seen after rereading the interrupt status bits. the interrupt source table 8 (below) shows the data values (bits 0-3) for the four prioritized interrupt levels and the interrupt sources associated with each of these interrupt levels: interrupt enable register (ier) the interrupt enable register (ier) masks the inter- rupts from receiver ready, transmitter empty, line status and modem status registers. these interrupts would normally be seen on the int a,b output pins. ier bit-0: this interrupt will be issued when the rhr is full or is cleared when the rhr is empty. logic 0 = disable the receiver ready interrupt. (normal default condition) logic 1 = enable the receiver ready interrupt. ier bit-1: this interrupt will be issued whenever the thr is empty and is associated with bit-1 in the lsr register. logic 0 = disable the transmitter empty interrupt. (normal default condition) logic 1 = enable the transmitter empty interrupt. ier bit-2: this interrupt will be issued whenever a fully as- sembled receive character is transferred from the rsr to the rhr, i.e., data ready, lsr bit-0. logic 0 = disable the receiver line status interrupt. (normal default condition) logic 1 = enable the receiver line status interrupt. table 8, interrupt source table priority [isr bits] level bit-3 bit-2 bit-1 bit-0 source of the interrupt 1 0110lsr (r eceiver line status register) 2 0100 rxrdy (received data ready) 3 0010 txrdy (transmitter holding register empty) 4 0000msr (m odem status register)
16 st16c452/452ps rev. 3.10 isr bit-0: logic 0 = an interrupt is pending and the isr contents may be used as a pointer to the appropriate interrupt service routine. logic 1 = no interrupt pending. (normal default condi- tion) isr bit 1-3: (logic 0 or cleared is the default condition) these bits indicate the source for a pending interrupt at interrupt priority levels 1, 2, and 3 (see interrupt source table). isr bit 4-7: (logic 0 or cleared is the default condition) not used - initialized to a logic 0. line control register (lcr) the line control register is used to specify the asynchronous data communication format. the word length, the number of stop bits, and the parity are selected by writing the appropriate bits in this register. lcr bit 0-1: (logic 0 or cleared is the default condi- tion) these two bits specify the word length to be transmit- ted or received. bit-1 bit-0 word l ength 00 5 01 6 10 7 11 8 lcr bit-2: (logic 0 or cleared is the default condition) the length of stop bit is specified by this bit in conjunction with the programmed word length. bit-2 word l ength stop bit length (bit time(s)) 0 5,6,7,8 1 1 5 1-1/2 1 6,7,8 2 lcr bit-3: parity or no parity can be selected via this bit. logic 0 = no parity. (normal default condition) logic 1 = a parity bit is generated during the transmis- sion, receiver checks the data and parity for transmis- sion errors. lcr bit-4: if the parity bit is enabled with lcr bit-3 set to a logic 1, lcr bit-4 selects the even or odd parity format. logic 0 = odd parity is generated by forcing an odd number of logic 1?s in the transmitted data. the receiver must be programmed to check the same format. (normal default condition) logic 1 = even parity is generated by forcing an even the number of logic 1?s in the transmitted. the receiver must be programmed to check the same format. lcr bit-5: if the parity bit is enabled, lcr bit-5 selects the forced parity format. lcr bit-5 = logic 0, parity is not forced. (normal default condition) lcr bit-5 = logic 1 and lcr bit-4 = logic 0, parity bit is forced to a logical 1 for the transmit and receive data. lcr bit-5 = logic 1 and lcr bit-4 = logic 1, parity bit is forced to a logical 0 for the transmit and receive data.
17 st16c452/452ps rev. 3.10 lcr lcr lcr parity selection bit-5 bit-4 bit-3 x x 0 no parity 0 0 1 odd parity 0 1 1 even parity 1 0 1 force parity odd parity 1 1 1 forced even parity lcr bit-6: when enabled the break control bit causes a break condition to be transmitted (the tx output is forced to a logic 0 state). this condition exists until disabled by setting lcr bit-6 to a logic 0. logic 0 = no tx break condition. (normal default condition) logic 1 = forces the transmitter output (tx) to a logic 0 for alerting the remote receiver to a line break condition. lcr bit-7: the internal baud rate counter latch and enhance feature mode enable. logic 0 = divisor latch disabled. (normal default condition) logic 1 = divisor latch and enhanced feature register enabled. modem control register (mcr) this register controls the interface with the modem or a peripheral device. mcr bit-0: logic 0 = force -dtr output to a logic 1. (normal default condition) logic 1 = force -dtr output to a logic 0. mcr bit-1: logic 0 = force -rts output to a logic 1. (normal default condition) logic 1 = force -rts output to a logic 0. mcr bit-2: this bit is used in the loop-back mode only. in the loop-back mode this bit is use to write the state of the modem -ri interface signal. mcr bit-3: ( used to control the modem -cd signal in the loop-back mode.) logic 0 = forces int (a-b) outputs to the three state mode. (normal default condition) in the loop-back mode, sets -cd internally to a logic 1. logic 1 = forces the int (a-b) outputs to the active mode. in the loop-back mode, sets -cd internally to a logic 0. mcr bit-4: logic 0 = disable loop-back mode. (normal default condition) logic 1 = enable local loop-back mode (diagnostics). mcr bit 5-7: not used - initialized to a logic 0. line status register (lsr) this register provides the status of data transfers between. the 452/452ps and the cpu. lsr bit-0: logic 0 = no data in receive holding register. (normal default condition) logic 1 = data has been received and is saved in the receive holding register. lsr bit-1: logic 0 = no overrun error. (normal default condition) logic 1 = overrun error. a data overrun error occurred in the receive shift register. this happens when addi- tional data arrives while the rhr is full. in this case the previous data in the shift register is overwritten. note that under this condition the data byte in the receive shift register is not transferred into the rhr, therefore the data in the rhr is not corrupted by the error. lsr bit-2: logic 0 = no parity error. (normal default condition) logic 1 = parity error. the receive character does not have correct parity information and is suspect.
18 st16c452/452ps rev. 3.10 lsr bit-3: logic 0 = no framing error. (normal default condition) logic 1 = framing error. the receive character did not have a valid stop bit(s). lsr bit-4: logic 0 = no break condition. (normal default condi- tion) logic 1 = the receiver received a break signal (rx was a logic 0 for one character frame time). lsr bit-5: this bit indicates that the 452/452ps is ready to accept new characters for transmission. this bit causes the 452/452ps to issue an interrupt to the cpu when the transmit holding register is empty and the interrupt enable is set. logic 0 = transmit holding register is not empty. (normal default condition) logic 1 = transmit holding register is empty. when this bit is a logic 1, the cpu can load new character into the transmit holding register for transmission. lsr bit-6: logic 0 = transmitter holding and shift registers are full. logic 1 = transmitter holding and shift registers are empty (normal default condition). lsr bit-7: not used - initialized to a logic 0. modem status register (msr) this register provides the current state of the control interface signals from the modem, or other peripheral device that the 452/452ps is connected to. four bits of this register are used to indicate the changed information. these bits are set to a logic 1 whenever a control input from the modem changes state. these bits are set to a logic 0 whenever the cpu reads this register. msr bit-0: logic 0 = no -cts change (normal default condition) logic 1 = the -cts input to the 452/452ps has changed state since the last time it was read. a modem status interrupt will be generated. msr bit-1: logic 0 = no -dsr change. (normal default condition) logic 1 = the -dsr input to the 452/452ps has changed state since the last time it was read. a modem status interrupt will be generated. msr bit-2: logic 0 = no -ri change. (normal default condition) logic 1 = the -ri input to the 452/452ps has changed from a logic 0 to a logic 1. a modem status interrupt will be generated. msr bit-3: logic 0 = no -cd change. (normal default condition) logic 1 = indicates that the -cd input to the has changed state since the last time it was read. a modem status interrupt will be generated. msr bit-4: normally msr bit-4 bit is the compliment of the -cts input. however in the loop-back mode, this bit is equivalent to the rts bit in the mcr register. msr bit-5: dsr (active high, logical 1). normally this bit is the compliment of the -dsr input. in the loop-back mode, this bit is equivalent to the dtr bit in the mcr register. msr bit-6: ri (active high, logical 1). normally this bit is the compliment of the -ri input. in the loop-back mode this bit is equivalent to mcr bit-2 in the mcr register. msr bit-7: cd (active high, logical 1). normally this bit is the compliment of the -cd input. in the loop-back mode this bit is equivalent to mcr bit-3 in the mcr register. note: whenever any msr bit 0-3: is set to logic ?1?, a modem status interrupt will be generated.
19 st16c452/452ps rev. 3.10 scratchpad register (spr) the st16c452/452ps provides a temporary data register to store 8 bits of user information. printer port register descriptions port register (pr) pr bit 0-7: printer data port (bi-directional) - these pins are the eight bit data bus for transferring information to or from an external device (usually a printer). d0 is the least significant bit. pd7-pd0 are latched during a write cycle (output mode). i/o select register (iosel) this bit is used in conjunction with the state of biden to set the direction (input/output) of the pd7-pd0 data bus. this register is used only when biden is a logic 0. logic 55 (hex) + biden 0 = pd7-pd0 are set for output mode logic aa (hex) + biden 0 = pd7-pd0 are set for input mode status register (sr) this register provides the printer port input logical states and the status of the interrupt -intp based on the condition of the -ack printer port interface signal. the logical state of these pins is dependent on exter- nal interface signals. sr bit 1-0: not used - initialized to a logic 1. sr bit-2: logic 0 = an interrupt is pending when intsel is a logic 0, sr bit-2 basically tracks the -ack input interface pin (returns to a logic 1 when the -ack input returns to a logic 1). however when intsel is a logic 1, the latched mode is selected, sr bit-2 goes to a logic 0 with the -ack input but does not return to a logic 1 until the end of the read cycle, i.e., reading sr will set this bit to a logic 1. logic 1 = no interrupt is pending. (normal inactive state) sr bit-3: logic 0 = -error input is a logic 0. logic 1 = -error input is a logic 1. (normal inactive state) sr bit-4: logic 0 = slct input is a logic 0. (normal inactive state) logic 1 = slct input is a logic 1. sr bit-5: logic 0 = pe input is a logic 0. (normal inactive state) logic 1 = pe input is a logic 1. sr bit-6: logic 0 = -ack input is a logic 0. logic 1 = -ack input is a logic 1. (normal inactive state) sr bit-7: logic 0 = busy input is a logic 0 logic 1 = busy input is a logic 1 (normal inactive state) command register (com) this register provides the printer port input logical states and the status of the printer interrupt init, which is based on the state of con bit-1. com bit-0: -strobe is a bi-directional signal with an open source driver and internal pull-up so that it may be wire-or?d with other outputs. com bit-1 is used to read status while con bit 1 is used to set an output state. if it is to function as an input, con bit-1 shall be set to a logic 1 first. logic 0 = -strobe pin is a logic 1. (normal default condition) logic 1 = -strobe pin is a logic 0. com bit-1: -autofdxt is a bi-directional signal with an open source driver and internal pull-up so that it may be wire-or?d with other outputs. com bit-1 is used to read status while con bit 1 is used to set an output state. if it is to function as an input, con bit-1 shall be set to
20 st16c452/452ps rev. 3.10 a logic 1 first. logic 0 = -autofdxt pin is a logic 1. (normal default condition) 1= -autofdxt pin is a logic 0. com bit-2: init is a bi-directional signal with an open source driver and internal pull-up so that it may be wire-or?d with other outputs. com bit-2 is used to read status while con bit 2 is used to set an output state. if it is to function as an input, con bit-1 shall be set to a logic 1 first. logic 0 = init pin is a logic 0. (normal default condition) logic 1 = init pin is a logic 1. com bit-3: -slctin is a bi-directional signal with an open source driver and internal pull-up so that it may be wire-or?d with other outputs. com bit-1 is used to read status while con bit 1 is used to set an output state. if it is to function as an input, con bit-1 shall be set to a logic 1 first. logic 0 = -slctin pin is a logic 1 (normal default condition) logic 1 = -slctin pin is a logic 0 com bit-4: this bit allows the state of -intp to be read back by the external cpu. logic 0 = interrupt (-intp output) is disabled (normal default condition) logic 1 = interrupt (-intp output) is enabled com bit 5-7: not used - initialized to a logic 1. control register (con) this register provides control of the printer port output logical states and controls the printer interrupts init and -intp. with the exception of pd 0-7 in/out, the status of this register may be read by reading the com register. con bit-0: the -strobe output control bit is under software control, i.e., the hardware will not generate a strobe. it is up to software to return the state of -strobe to the inactive (logic 1) state. the hardware driver is open drain so that -strobe may be wire-or?d. the state of this bit can be read using com bit-0. logic 0 = -strobe output is set to a logic 1. (normal default condition) logic 1 = -strobe output is set to a logic 0. con bit-1: the -autofdxt output control bit is set by software using con bit-1. the hardware driver is open drain so that -autofdxt may be wire-or?d. the state of this bit can be read using com bit-1. logic 0 = -autofdxt output is set to a logic 1. (normal default condition) logic 1 = -autofdxt output is set to a logic 0. con bit-2: the init output control bit is set by software using con bit-2. the hardware driver is open drain so that init may be wire-or?d. the state of this bit can be read using com bit-2. logic 0 = init output is set to a logic 0. (normal default condition) logic 1 = init output is set to a logic 1. con bit-3: the -slctin output control bit is set by software using con bit-3. the hardware driver is open drain so that -autofdxt may be wire-or?d. the state of this bit can be read using com bit-3. logic 0 = -slctin output is set to a logic 1. (normal default condition) logic 1 = -slctin output is set to a logic 0. con bit-4: this bit enables or masks the printer interrupt output -intp. the state of this bit can be read using com bit- 4. logic 0 = disable -intp output. (normal default con- dition) logic 1 = enable -intp output.
21 st16c452/452ps rev. 3.10 con bit-5: this bit is used in conjunction with the state of biden to set the direction (input/output) of the pd7-pd0 data bus. logic 0 + biden 1 = pd7-pd0 are set for output mode (normal default condition) logic 1 + biden 1 = pd7-pd0 are set for input mode con bit 6-7: not used - initialized to a logic 1. st16c452/452ps external reset condi- tion registers reset state (uart) ier bits 0-7=0 isr isr bit-0=1, isr bits 1-7=0 lcr lcr bits 0-7=0 mcr mcr bits 0-7=0 lsr lsr bits 0-4=0, lsr bits 5-6=1 lsr, bit 7=0 msr msr bits 0-3=0, msr bits 4-7=input signals registers reset state printer port iosel iosel bits-0-7=0 sr sr bits 0-1=1, bits 2-7=input signals com com bits 0-4=0, bits 5-7=1 con con bits 0-5=0, bits 6-7=1 signals reset state tx a/b high -rts a/b high -dtr a/b high int a/b, p three state mode pd0-pd7 low, output mode -strobe high, output mode -autofdxt high, output mode init low, output mode -slctin high, output mode
22 st16c452/452ps rev. 3.10 symbol parameter limits limits units con ditions 3.3 5.0 min max min max t 1w ,t 2w clock pulse duration 17 17 ns t 3w oscillator/clock frequency 8 24 mhz t 6s address setup time 5 0 ns t 7d -ior delay from chip select 10 10 ns t 7w -ior strobe width 35 25 ns t 7h chip select hold time from -ior 0 0 ns t 9d read cycle delay 40 30 ns t 12d delay from -ior to data 35 25 ns t 12h data disable time 25 15 ns t 13d -iow delay from chip select 10 10 ns t 13w -iow strobe width 40 25 ns t 13h chip select hold time from -iow 0 0 ns t 15d write cycle delay 40 30 ns t 16s data setup time 20 15 ns t 16h data hold time 5 5 ns t 17d delay from -iow to output 50 40 ns 100 pf load t 18d delay to set interrupt from modem 40 35 ns 100 pf load input t 19d delay to reset interrupt from -ior 40 35 ns 100 pf load t 20d delay from stop to set interrupt 1 1 rclk t 21d delay from -ior to reset interrupt 45 40 ns 100 pf load t 22d delay from stop to interrupt 45 40 ns t 23d delay from initial int reset to transmit 8 24 8 24 rclk start t 24d delay from -iow to reset interrupt 45 40 ns t 39w -ack pulse width 75 75 ns t 40s pd7 - pd0 setup time 15 10 ns t 41h pd7 - pd0 hold time 30 25 ns t 42d delay from -ack low to interrupt low 10 5 ns t 43d delay from -ior to reset interrupt 10 5 ns t r reset pulse width 40 40 ns n baud rate devisor 1 2 16 -1 1 2 16 -1 rclk ac electrical characteristics t a =0 - 70c (-40 - +85c for industrial grade packages), vcc=3.3 - 5.0 v 10% unless otherwise specified.
23 st16c452/452ps rev. 3.10 symbol parameter limits limits units con ditions 3.3 5.0 min max min max v ilck clock input low level -0.3 0.6 -0.5 0.6 v v ihck clock input high level 2.4 vcc 3.0 vcc v v il input low level -0.3 0.8 -0.5 0.8 v v ih input high level 2.0 2.2 vcc v v ol output low level on all outputs 0.4 v i ol = 4 ma v ol output low level on all outputs 0.4 v i ol = 4 ma v oh output high level 2.4 v i oh = -4 ma v oh output high level 2.0 v i oh = -1 ma i il input leakage 10 10 m a i cl clock leakage 10 10 m a i cc avg power supply current 1.2 3 ma c p input capacitance 5 5 pf r in internal pull-up resistance 9 22 k w note: see the symbol description table, for a listing of pins having internal pull-up resistors. absolute maximum ratings supply range 7 volts voltage at any pin gnd - 0.3 v to vcc +0.3 v operating temperature -40 c to +85 c storage temperature -65 c to 150 c package dissipation 500 mw dc electrical characteristics t a =0 - 70c (-40 - +85c for industrial grade packages), vcc=3.3 - 5.0 v 10% unless otherwise specified.
24 st16c452/452ps rev. 3.10 general write timing general read timing a0-a2 -cs -iow d0-d7 t6s t13w t13d t13h t15d t16s t16h x552-wd-1 valid address active active data a0-a2 -cs -ior d0-d7 t6s t7w t7d t7h t9d t12d t12h x552-rd-1 active data valid address active
25 st16c452/452ps rev. 3.10 external clock timing modem input/output timing -iow -rts -dtr -cd -cts -dsr int -ior -ri t17d t18d t18d t19d t18d x552-md-1 active active change of state change of state active active active change of state change of state change of state active active t3w t1w t2w external clock ex-ck-1
26 st16c452/452ps rev. 3.10 receive timing stop bit parity bit data bits (5-8) d0 d1 d2 d3 d4 d5 d6 d7 5 data bits 6 data bits 7 data bits start bit rx next data start bit int -ior t20d t21d 16 baud rate clock x552-rx-1 active active
27 st16c452/452ps rev. 3.10 transmit timing stop bit parity bit data bits (5-8) d0 d1 d2 d3 d4 d5 d6 d7 5 data bits 6 data bits 7 data bits start bit tx next data start bit int t22d t24d 16 baud rate clock x552-tx-1 -iow t23d active active tx ready active
28 st16c452/452ps rev. 3.10 printer port timing -ack intp -ior interrupt latched mode select normal mode intsel t40d t42d t43d t39w valid data t40s t41h pd0-pd7 x552-pr-2
package dimensions
notice exar corporation reserves the right to make changes to the products contained in this publication in order to im- prove design, performance or reliability. exar corporation assumes no responsibility for the use of any circuits de- scribed herein, conveys no license under any patent or other right, and makes no representation that the circuits are free of patent infringement. charts and schedules contained here in are only for illustration purposes and may vary depending upon a user's specific application. while the information in this publication has been carefully checked; no responsibility, however, is assumed for inaccuracies. exar corporation does not recommend the use of any of its products in life support applications where the failure or malfunction of the product can reasonably be expected to cause failure of the life support system or to significantly affect its safety or effectiveness. products are not authorized for use in such applications unless exar corporation receives, in writing, assurances to its satisfaction that: (a) the risk of injury or damage has been minimized; (b) the user assumes all such risks; (c) potential liability of exar corporation is adequately protected under the circum- stances. copyright 1994 exar corporation reproduction, in part or whole, without the prior written consent of exar corporation is prohibited.


▲Up To Search▲   

 
Price & Availability of ST16C452PS

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X